	<body>
		<script type="text/javascript">
			var c=1;
			var l=1;
			var m=true;
			
			function cc(){
				
				var stu=document.getElementById("stu").style;
				
				if(c==1){
					stu.cssText="-webkit-transform:scale(1,-1);";
					c=0;
					document.getElementById("stuimg").style.display="inline";
				}
				else {
					stu.cssText="-webkit-transform:scale(1);";
					c=1;
					document.getElementById("stuimg").style.display="none";
				}			
			}
			
			function slide(){
				
				var di=document.getElementById("decimg");
				
				if(l==0){
						m=true;
						di.style.left="0px";
				}
				else if(l==2){
						m=false;
						di.style.left="-520px";
				}
				else if(l==1){
				di.style.left="-260px";
				}
				
				if(m)
					l++;
				else
					l--;
			}
			
			function checktime(i){
				if(i<10)
					i="0"+i;
				return i;
			}
			
			function updatetime(){
				
				var date = new Date;
				
				var time = checktime(date.getHours())+":"+checktime(date.getMinutes());
				var mon = date.getMonth()+1;
				var day = date.getFullYear()+"/"+mon+"/"+date.getDate();
				
				document.getElementById("time").innerHTML=time;
				document.getElementById("date").innerHTML=day;
			}			
			
			setInterval("updatetime()",1000);
			setInterval("slide()",4000);
			setInterval("cc()",5000);
		</script>
	
		<nav>
			<ul>
				<li><a href="">Module 1</a>
					<ul> 
					  <?php 
					  //连接数据库
					    $conn;
			            include '../public/conn.php';
						
						$res=mysql_query("SELECT * FROM log WHERE unit_id = '1'");
						while($title = mysql_fetch_array($res)){
							if($title['log_visible'] =='1'  ){
					  ?>
								<li><a href="../log/log_read.php?id=<?php echo $title['log_id'];?>"><?php echo $title['log_title'] ?></a></li>
						 <?php}
						 	//else{
						 ?>
						 		<!--<li><a href="../log/log_secret.php?id=<?php echo $title['log_id'];?>"><?php echo "秘密" ?></a></li>-->
						  <?php	}
						}
						 ?>
					</ul>
				</li>
				
				<li><a href="">Module 2</a>
					<ul> 
					  <?php 
					  //连接数据库
					    $conn;
			            include '../public/conn.php';
						$res=mysql_query("SELECT *FROM log WHERE unit_id = '2'");
						while($title = mysql_fetch_array($res)){
							if($title['log_visible'] =='1'  ){
					  ?>
								<li><a href="../log/log_read.php?id=<?php echo $title['log_id'];?>"><?php echo $title['log_title'] ?></a></li>
						 <?php}
						 	//else{
						 ?>
						 		<!--<li><a href="../log/log_secret.php?id=<?php echo $title['log_id'];?>"><?php echo "秘密" ?></a></li>-->
						  <?php	}
						}
						 ?>
					</ul>
				</li>
				
				<li><a href="">Module 3</a>
					<ul> 
					  <?php 
					  //连接数据库
					    $conn;
			            include '../public/conn.php';
						$res=mysql_query("SELECT *FROM log WHERE unit_id = '3'");
						while($title = mysql_fetch_array($res)){
							if($title['log_visible'] =='1'  ){
					  ?>
								<li><a href="../log/log_read.php?id=<?php echo $title['log_id'];?>"><?php echo $title['log_title'] ?></a></li>
						 <?php}
						 	//else{
						 ?>
						 		<!--<li><a href="../log/log_secret.php?id=<?php echo $title['log_id'];?>"><?php echo "秘密" ?></a></li>-->
						  <?php	}
						}
						 ?>
					</ul>
				</li>
				
				<li><a href="">Module 4</a>
					<ul> 
					  <?php 
					  //连接数据库
					    $conn;
			            include '../public/conn.php';
						$res=mysql_query("SELECT *FROM log WHERE unit_id = '4'");
						while($title = mysql_fetch_array($res)){
							if($title['log_visible'] =='1'  ){
					  ?>
								<li><a href="../log/log_read.php?id=<?php echo $title['log_id'];?>"><?php echo $title['log_title'] ?></a></li>
						 <?php}
						 	//else{
						 ?>
						 		<!--<li><a href="../log/log_secret.php?id=<?php echo $title['log_id'];?>"><?php echo "秘密" ?></a></li>-->
						  <?php	}
						}
						 ?>
					</ul>
				</li>
			</ul>
		</nav>	

		<div id="clock">
			<a href="../reg_login/sign.html#r"><h2>Log off</h2></a>	
			<h1 id="time"></h1>
			<h3 id="date"></h3>
		</div>